package com.open.capacity.notice.provider.wechat.interactive.res;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = false)
public class LoginResponse extends WechatResponse {

	/**
	 * 响应体
	 */
	@JsonProperty("data")
	private LoginData data;

	@Data
	@JsonInclude(JsonInclude.Include.NON_NULL)
	public static class LoginData {

		/**
		 * 1、 授权密钥，生成后永久有效
		 */
		@JsonProperty("Authorization")
		private String authorization;

		/**
		 * 2、callbackUrl
		 */
		@JsonProperty("callbackUrl")
		private String callbackUrl ;
		
		/**
		 * 2、状态（0：正常，1：冻结，2：到期）
		 */
		@JsonProperty("status")
		private String status ;
	}
}
